@import '../../style/global.scss';
.collection{
    .category-list{
        position: fixed;
        top: 200px;
        bottom: 20px;
        // left: 20px;
        right: 10px;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        .category-item{
            padding: 10px 20px;
            background-color: #fff;
            margin-right: 20px;
            border-radius: 10px;
            cursor: pointer;
            margin-bottom: 10px;
            max-width: 150px;
            &:hover{
                background-color: #666;
                color: #fff;
            }
        }
    }
    .title{
        display: inline-block;
        position: relative;
        padding: 10px;
        margin-bottom: 10px;
        // margin-right: 20px;
        &::after{
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 4px;
            background-color: $primary-color;
            content: "";
        }
    }
    .list{
        display: flex;
        flex-wrap: wrap;
        margin: auto;
        .list-item{
            flex: 1;
            min-width: 355px;
            // width: 100%;
            // height: 110px;
            background-color: #fff;
            padding: 15px;
            box-sizing: border-box;
            margin: 0 20px 20px 0;
            // grid-column-end: span 1;
            border-radius: 5px;
            overflow: hidden;
            .head{
                display: flex;
                align-items: center;
                cursor: pointer;
                .image{
                    width: 50px;
                    height: 50px;
                    margin-right: 6px;
                }
            }
            .description{
                font-size: 12px;
                color: #999;
                padding: 10px 0 0 0;
            }
        }
        
    }
}